package main.java.name.fowler.refactoring.simplestore;

public class Rental {
	
	private int m_DaysRented;
	private Movie m_Movie;
	
	public Rental(Movie movie, int daysRented)
	{
		m_Movie = movie;
		m_DaysRented = daysRented;
	}
	
	public double getPriceCode()
	{
		return m_Movie.getPrice(m_DaysRented);
	}
	
	public int getFrequentRenterPoints()
	{
		return m_Movie.getFrequentRenterPoints(m_DaysRented);
	}

	public Movie getM_Movie() {
		return m_Movie;
	}
}
